<?php
require_once(ABSPATH.'/DB.php');
class  Catalog {
	
	
	function get_post_all_valid() {
		$db = new DB();
		$db -> conn_mysql();
		$sql = "select * from catalog where valid = 0";		
		$get_catalog_rec = $db -> run_sql_query($sql);		
		while ($catalog_info =  mysql_fetch_array($get_catalog_rec)) {
			$catalogs_list[] = $catalog_info;				
		}
		
		return $catalogs_list;
	}
}
?>